package cn.edu.dlmu.cogo.framework.web;


import cn.edu.dlmu.cogo.framework.context.CogoClass;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

/**
 * @author yixi
 */
public class RequestBody {

    private final Map<String, CogoClass> REQUEST_BODY = new HashMap<>();

    public Set<String> getMapping() {
        return REQUEST_BODY.keySet();
    }

    public CogoClass getClassAndMethod(String mapping) {
        return REQUEST_BODY.get(mapping);
    }

    public void setMapping(String mapping, CogoClass cogoClass) {
        this.REQUEST_BODY.put(mapping, cogoClass);
    }
}
